package com.cqg.zk;

import lombok.extern.slf4j.Slf4j;
import org.apache.curator.test.TestingServer;

import java.io.File;

@Slf4j
public class CqgZkServer {
    private static TestingServer server;
    public static void main(String[] args) throws Exception {
        startServer();
    }

    public static void startServer() throws Exception {
        log.info("zkServer is starting");
        server = new TestingServer(2181, new File("~/tmpdata/zk-book-data"));
        log.info("zkServer is start");
    }
}
